INCLUDES = -Iinclude
CC = sdcc -mmcs51
BASENAME = rxA_512adc

all: $(BASENAME)_48kHz.ihx $(BASENAME)_86kHz.ihx $(BASENAME)_max.ihx

$(BASENAME)_48kHz.ihx: $(BASENAME).c
	$(CC) $(INCLUDES) $(BASENAME).c -D FREQ48KHZ -o $@

$(BASENAME)_86kHz.ihx: $(BASENAME).c
	$(CC) $(INCLUDES) $(BASENAME).c -D FREQ86KHZ -o $@

$(BASENAME)_max.ihx: $(BASENAME).c
	$(CC) $(INCLUDES) $(BASENAME).c -D FREQMAX -o $@

clean:
	rm -f *.asm  *.ihx  *.lnk *.lst *.map *.mem *.rel *.rst *.sym
